# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=gnome-common
pkgver=3.14.0
pkgrel=1
pkgdesc="Common development macros for GNOME"
arch=('any')
license=('GPL')
url="http://www.gnome.org"
source=(http://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-$pkgver.tar.xz
        Werror-format-remove.patch)
sha256sums=('4c00242f781bb441289f49dd80ed1d895d84de0c94bfc2c6818a104c9e39262c'
            'c88704be75556c08a62645588ec70050f58def421f849c0519213c8709e36906')

prepare() {
  cd ${srcdir}/${pkgname}-${pkgver}
  #patch -p1 -i ${srcdir}/Werror-format-remove.patch
}

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
